// ----------------------------------------------------------------------------
/**
 * @file    friendRequestsWindow.h
 *
 * @brief   Header file for friendRequestsWindow.cpp
 *
 * The friendrequestswindow holds all of the friend requests that belong to the user.
 *
 * @author  Siddharth Sathyam <ssathy2@gmail.com>
 * @author  Alan Ruvalcaba <aruval3@gmail.com>
 * @author  Patrick LaMontagna <plamontagna@gmail.com
 *
 * @version 1.0
 *
 * @date    November 24th, 2011
 *
 */
// ----------------------------------------------------------------------------

#ifndef FRIENDREQUESTSWINDOW_H
#define FRIENDREQUESTSWINDOW_H

#include <QDialog>
#include <QMessageBox>

namespace Ui {
    class friendRequestsWindow;
}

/**
 * @class   friendRequestsWindow
 *
 * @brief   The friendRequestsWindow helper methods
 *
 */

class friendRequestsWindow : public QDialog
{
    Q_OBJECT

public:

    /// Constructor method for friendRequestsWindow
    friendRequestsWindow(QWidget *parent, QString personReceiving);

    /// Deconstructor method for friendRequestsWindow
    ~friendRequestsWindow();

signals:

        /**
        * @brief Signal that confirms the friend request
        *
        * @param personToAcceptName The username of the user to accept as a friend
        * @param true A boolean value that confirms a successful add
        */

	void confirmFriendRequest(QString,bool);

private slots:

        /**
        * @brief Slot that handles the friend request confirmation
        *
        * @param personSendingRequest The username of the user sending out the request
        */
	void handleFriendshipConfirmation(QString personSendingRequest);

        /**
        * @brief Slot that determines if the user clicks the accept button
        */

	void on_acceptButton_clicked();

        /**
        * @brief Slot that determines if the user clicks the deny button
        */

	void on_denyButton_clicked();

    private:
    Ui::friendRequestsWindow *ui;

    /// The list of all current friend requests variable
    QList<QString> listOfCurrentRequests;

    /// The person receiving a friend request variable
    QString personReceivingRequests;
};

#endif // FRIENDREQUESTSWINDOW_H
